package com.zhangh.summer.admin.biz.role;

import com.zhangh.summer.admin.model.bo.DataBO;
import com.zhangh.summer.admin.model.po.AdRolePO;
import com.zhangh.summer.admin.model.bo.NoValidatorBO;
import com.zhangh.summer.admin.support.ds.common.pager.DataPager;
import com.zhangh.summer.admin.support.ds.common.pager.Pager;

import java.util.List;

/**
 * @description: TODO
 * @author: zhanghui  zhanghlucky@163.com
 * @create: 2021-09-28 02:34
 **/
public interface RoleBiz {

    public DataPager<AdRolePO> getRoleDataPager(DataBO query, Pager pager);

    public AdRolePO getRolePO(Long id);

    public long saveRole(AdRolePO adRolePO);

    public int updateRole(AdRolePO adRolePO);

    public int deleteRole(long id);

    public boolean validateRoleNo(NoValidatorBO noValidatorBO);

    public List<AdRolePO> getRoleDataList(DataBO query);

    public List<AdRolePO> getUserRole(DataBO query);
}
